Copyright ã1995 by NeXT Computer, Inc.  All Rights Reserved.

NS_DEV_DOCFOR:objc_protocol:NXChangeSpelling;,NXChangeSpelling

Adopted By:	Text

Declared In:	appkit/NXSpellChecker.h

Protocol Description

An object in the responder chain that can correct a misspelled word implements this protocol.

See also:  NXSpellChecker class

Instance Methods

NS_DEV_DOCFOR:objc_method:[NXChangeSpelling-changeSpelling:];,changeSpelling:

- changeSpelling:sender

Replaces with a corrected version the selected word in the object whose text is being checked.  This message is sent by the NXSpellChecker instance to the object whose text is being checked.  To get the corrected spelling, the receive asks the sender for the string value of its selected cell (visible to the user as the text field in the Spelling Panel).  The method replaces the selected portion of the text stream with the string that it gets from the NXSpellChecker.

Returns self when the replacement is successful, and nil otherwise (for example, if the selected text is in an object that is not editable).